<script type="text/javascript">



function dossierimages(){



	id=$("input[name='ButterflyPortal_sys_rec']:checked").val();



	$("a[rel='images_"+id+"']").click();

}



function dossierradios(){

	id=$("input[name='ButterflyPortal_sys_rec']:checked").val();

	if ($("a[rel='radios_"+id+"']")) $("a[rel='radios_"+id+"']").click(); else alert("ok");

}

function ajoutsalleattente(){

	id=$("input[name='ButterflyPortal_sys_rec']:checked").val();

	$.get("/portlet.php",

	{app: "cabinet",

	operation:"ajoutsalleattente",

	dossierId:id

	},

	   function(data){





	location="?table=cabinet_attente&filter=1";





				});





	

	

}

function soins(){

	id=$("input[name='ButterflyPortal_sys_rec']:checked").val();

	$.get("/portlet.php",

	{app: "cabinet",

	operation:"soins",

	dossierId:id

	},

	   function(data){





	location="?table=cabinet_soins_portlet&filter=1&dossierId="+id;





				});

}



$(document).ready(function() {



	

	

	$("a.soinimages").fancybox({

		'transitionIn'	:	'elastic',

		'transitionOut'	:	'elastic',

		'speedIn'		:	600, 

		'speedOut'		:	200, 

		'overlayShow'	:	false

	});

	

});



</script>